﻿<%@ Page Language="C#" MasterPageFile="~/Member/UserManage.master" AutoEventWireup="true"
    CodeFile="SincereAgentList.aspx.cs" Inherits="Member_Agent_SincereAgentList"
    Title="管理诚招代理加盟" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContInfo" runat="Server">
     <script type="text/javascript">
        function SelectAll()
        {
            // 找到所有的 input 元素
            var ctllist = document.getElementsByTagName("input");
            var objcheckbox= document.getElementById("CheckBox2");     
            for( var i = 0; i< ctllist.length; i++)
            {
                if(ctllist[i].type == "checkbox" && ctllist[i].name.indexOf( "CheckBox1") >=0 )
                {   
                    if(objcheckbox.checked==true)     
                         ctllist[i].checked = true;
                    else
                         ctllist[i].checked = false;
                }
          
             }
         }
    </script>
    <div class="inkg mar_top">
    <form id="form1" action="">
    <strong class="inkgt">
        管理诚招代理加盟</strong>
     <div class="intip mar_top">
            <strong class="intipt">提&nbsp;示：</strong>
			<p>·修改信息：审核通过才能上网，可以增加商机有效期及提升信息排名。</p>
			<p>·过期信息：建议您重发有用的过期信息，信息过期6个月后将被系统自动删除！批量重发过期信息</p>
            <i class="lt"></i><i class="lb"></i>
			</div>
    <div class="intab mar_top" id="intab">
        <ul class="intabt">
            <li class="<%=verify=="1"?"intabt2":"intabt1" %>" id="menu1" onclick="javascript:window.location.href='SincereAgentList.aspx?Verify=1'" >已发布上网</li>
            <li class="<%=verify=="3"?"intabt2":"intabt1" %>" id="menu2" onclick="javascript:window.location.href='SincereAgentList.aspx?Verify=3'" >审核中</li>
            <li class="<%=verify=="2"?"intabt2":"intabt1" %>" id="menu3" onclick="javascript:window.location.href='SincereAgentList.aspx?Verify=2'" >审核未通过</li>
            <li class="<%=verify=="4"?"intabt2":"intabt1" %>" id="menu4" onclick="javascript:window.location.href='SincereAgentList.aspx?Verify=4'"  >过期信息</li>
        </ul>
        <div class="intabc" id="intabc">
            <div class="con" style="display: block">
                        <table cellpadding="0" cellspacing="0" border="0" class="edtb">
                            <thead>
                          <tr>
                            <td align="center" width="50" > <strong>选项</strong></td>
                            <td align="center" width="120" > <strong>图片</strong></td>
                            <td align="center" width="250" > <strong>信息类型</strong></td>
                            <td align="center" width="100" > <strong>到期时间</strong></td>
                            <td align="center" > <strong>操作</strong></td>
                          </tr>
                        </thead>
                         <tbody>
                <asp:Repeater ID="dlstSincereAgent" runat="server" >
                    <ItemTemplate>
                            <tr >
                                <td align="center" width="50" >
                                    <input runat="server" value='<%# DataBinder.Eval(Container.DataItem,"ID")%>' id="chk" name="chk"
                                    type="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" />
                                </td>
                                <td align="center" width="120">
                                    <asp:Image ID="Image1" runat="server" ImageUrl='<%# GetImagePath(Eval("Picture").ToString())%>' CssClass="table_photo" Width="80px" Height="80px" /></td>
                                <td  align="center" width="250">
                                    【诚招】<%# DataBinder.Eval(Container.DataItem,"Name")%>
                                </td>
                                <td align="center" width="100">
                                    <%# GetShortDate(DataBinder.Eval(Container.DataItem, "AddDate").ToString(), DataBinder.Eval(Container.DataItem, "Validity").ToString())%>
                                </td>
                                <td>
                                    <a href='SincereAgentEdit.aspx?ID=<%# DataBinder.Eval(Container.DataItem,"ID")%>'>修改
                                    </a>
                            </tr>
                    </ItemTemplate>
                </asp:Repeater>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="5">
                                    <p class="zi1">
                                        <input runat="server" class="checkbox" type="checkbox" id="chkall" name="chkall" onclick="CheckMinoAll();" />
                                        全选
                                        <asp:Button ID="btnDelete" runat="server" Font-Size="9pt" OnClick="btnDelete_Click"
                                            OnClientClick="return CheckSelect();return confirm('你确认要删除吗?');" Text="批量删除" CssClass="del" />
                                    </p>
                                    <p class="zi2">
                                        <%=pageStr %>
                                    </p>
                                </td>
                            </tr>
                        </tfoot>
                        </table>
                        <input type="hidden" id="CheckedIDS" name="CheckedIDS" value="0" runat="server" />
<%--				<div class="paging">
				<p><asp:Label ID="Pagin" runat="server"></asp:Label></p>
                <input id="CheckBox2" name="CheckBox2" type="checkbox" onclick="SelectAll();" />
                <asp:Button ID="btnDelete" runat="server" Font-Size="9pt" OnClick="btnDelete_Click" Text="批量删除" CssClass="i_button2" />
                </div>--%>
                </div>
                </div>
    </div>
                </form>
                </div>
</asp:Content>